﻿using System;
using System.ComponentModel;


namespace WorkoutTracker.Model
{
    public class Workout : INotifyPropertyChanged
    {
        // The name of the Workout.
        public string Name { get; set; }
        public string MaxWeight { get; set; }
        public string WarmUpWeight { get; set; }

        public event PropertyChangedEventHandler PropertyChanged;

        private void RaisePropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }


        // Create a copy of an accomplishment to save.
        // If your object is databound, this copy is not databound.
        public Workout GetCopy()
        {
            Workout copy = (Workout)this.MemberwiseClone();
            return copy;
        }
    }
}
